package org.zn.etl.job.transformer;

import java.util.Iterator;
import java.util.List;
import java.util.Map;

import org.apache.commons.lang3.tuple.Pair;
import org.zn.datax.common.entity.ColumnInfo;

/**
 * @author zhounan
 * @date  2025年10月15日
 * @description
 */
public abstract class RowDataTransformer  implements DataTransformer {

	public List<Map<String, Object>>  transform(List<Map<String, Object>> data,List<Pair<ColumnInfo, ColumnInfo>> columnMappingPairs){
		
		for (Map<String, Object>  row : data) {
			transRow(row, columnMappingPairs);
		}
		
		return data;
		
	}
	
	
	public abstract void transRow(Map<String, Object> row, List<Pair<ColumnInfo, ColumnInfo>> columnMappingPairs);
	
}
